package top.saodisheng.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Description:
 * 主启动类
 * @author 扫地生_saodisheng
 */
//Ribbon和Eureka整合以后，客户端可以直接调用，而不同关心ip地址和端口号
@SpringBootApplication
@EnableEurekaClient //开启Eureka 客户端
// feign客户端注解,并指定要扫描的包以及配置接口DeptClientService
@EnableFeignClients(basePackages = {"top.saodisheng.springcloud"})
// 切记不要加这个注解，不然会出现404访问不到
//@ComponentScan("top.saodisheng.springcloud")
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class, args);
    }
}
